import { request } from './request.js';
//获取活动
export const getActivityDic = (params) => {
  return request({
    url: '/Maintain/getActivityDic',
    method: 'get',
    params,
  });
};
//根据表名获取相应字典（从字典表）
export const getDicByTableName = (params) => {
  return request({
    url: '/Maintain/getDicByTableName',
    method: 'get',
    params,
  });
};
//根据类型获取相应字典（从Dictionary表）
export const getDicByDictionary = (params) => {
  return request({
    url: '/Maintain/getDicByDictionary',
    method: 'get',
    params,
  });
};
//获取dictionaryType字典所有类型
export const getDictionaryType = () => {
  return request({
    url: '/Maintain/getAllDicType',
    method: 'get',
  });
};
//获取司机的字典
export const getDicUserByRole = (params) => {
  return request({
    url: '/Maintain/getDicUserByRole',
    method: 'get',
    params,
  });
};
//获取车辆实际标识字典
export const getDicVehicle = () => {
  return request({
    url: '/Maintain/getDicVehicle',
    method: 'get',
  });
};
//获取城市字典树
export const getCityTree = (params) => {
  return request({
    url: '/Maintain/getCityTree',
    method: 'get',
    params,
  });
};
//获取分组的字典树
export const getGroupTree = () => {
  return request({
    url: '/Maintain/getGroupTree',
    method: 'get',
  });
};
//根据表名获取角色
export const getRoleDicByTableName = (params) => {
  return request({
    url: '/Maintain/getRoleDicByTableName',
    method: 'get',
    params,
  });
};
//获级联选项 GetVenuesListByCityCode
export const getDicByTagType = (params) => {
  return request({
    url: '/Maintain/getDicByTagType',
    method: 'get',
    params,
  });
};
//获级联选项 GetVenuesListByCityCode
export const getVenuesListByCityCode = (params) => {
  return request({
    url: '/Maintain/GetVenuesListByCityCode',
    method: 'get',
    params,
  });
};
//获级联选项 根据场馆获取医疗点
export const getMedicalPointByVenues = (params) => {
  return request({
    url: '/Maintain/GetMedicalPointByVenues',
    method: 'get',
    params,
  });
};
//获取医院 getBindHospi
export const getBindHospi = (params) => {
  return request({
    url: '/Maintain/GetBindHospi',
    method: 'get',
    params,
  });
};
//获取本医院的医生
export const getDoctorForhospi = (params) => {
  return request({
    url: '/Maintain/GetDoctorForhospi',
    method: 'get',
    params,
  });
};
//获级联选项 根据城市获取车辆
export const getDicVehicleByCity = (params) => {
  return request({
    url: '/Maintain/GetDicVehicleByCity',
    method: 'get',
    params,
  });
};
//获级联选项 根据场馆获取车辆
export const getDicVehicleByVenues = (params) => {
  return request({
    url: '/Maintain/GetDicVehicleByVenues',
    method: 'get',
    params,
  });
};

export const getMedicPointDic = (params) => {
  return request({
    url: '/Maintain/getMedicPointDic',
    method: 'get',
    params,
  });
};
export const getMedicPointDicNormal = (params) => {
  return request({
    url: '/Maintain/getMedicPointDicNormal',
    method: 'get',
    params,
  });
};
//获取场馆
export const getActivityVenues = (params) => {
  return request({
    url: '/Maintain/getActivityVenues',
    method: 'get',
    params,
  });
};
